package com.lyj.knife4j.controller;

import com.lyj.knife4j.dto.TestDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试api
 * @author:liyajie
 * @createTime:2022/1/18 22:28
 * @version:1.0
 */
@Api(value = "TestController", tags = "测试api")
@RestController
@RequestMapping("/api/v1/user")
public class TestController {
    /**
     * 测试接口
     * @param
     * @return com.ancient.common.utils.R
     * @author: liyajie
     * @date: 2021/11/15 18:14
     * @exception:
     * @update:
     * @updatePerson:
     **/
    @ApiOperation(value = "测试接口", notes = "测试接口")
    @PostMapping("/test")
    public TestDto addUser(@RequestBody TestDto testDto) {
        return testDto;
    }
}
